package com.mutual.assistance.task.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mutual.assistance.task.model.po.TaskAppraisePO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface TaskAppraiseMapper extends BaseMapper<TaskAppraisePO> {

    @Select("SELECT AVG(star) FROM task_appraise WHERE recipient = #{recipient}")
    double polymerizationUserStar(@Param("recipient") String recipient);
}
